package cn.ittaoli.ajax.service.impl;

import cn.ittaoli.ajax.dao.NavMapper;
import cn.ittaoli.ajax.model.Nav;
import cn.ittaoli.ajax.service.NavService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lub_lenovo on 2017/8/8.
 */
@Service
public class NavServiceImpl implements NavService {
    @Autowired
    private NavMapper navMapper;
    public List<Nav> getAll() {
        return navMapper.getAll();
    }

    public Integer insertNav(Nav nav) {
        return navMapper.insert(nav);
    }
}
